<div class="edit-box" >
  <div class="blackscreen" (click)="onClose()"></div>
  <div class="edit box-content" (click)="$event.stopPropagation()">
    <div class="closeEdit"  nzTitle="关闭" nzPlacement="topCenter" nz-tooltip (click)="onClose()" >
      <i class="icon-close anticon anticon-close"></i>
    </div>
    <div class="l-title">
      <span >教案包设置</span>
    </div>
    <div class="edit-item">
      <div class="emt-box">
        <span class="emt-text">标题</span>
        <span class="emt-textlength">{{duplicate.name.length}}/30</span>
      </div>
      <input type="text" class="edit-input" placeholder="请输入教案包标题" maxlength="30" [(ngModel)]="duplicate.name" >
    </div>
    <div class="edit-item">
      <div class="emt-box">
        <span class="emt-text">副标题</span>
        <span class="emt-textlength">{{duplicate.enName.length}}/40</span>
      </div>
      <input type="text" class="edit-input" placeholder="请输入教案包副标题" maxlength="40" [(ngModel)]="duplicate.enName">
    </div>
    <div class="edit-item">
      <div class="emt-box">
        <span class="emt-text">出品方</span>
        <span class="emt-textlength">{{duplicate.publisher.length}}/40</span>
      </div>
      <input type="text" class="edit-input" placeholder="请输入出品方" maxlength="40" [(ngModel)]="duplicate.publisher">
    </div>
    <div class="edit-item">
      <div class="emt-box">
        <span class="emt-text">封面</span>
      </div>
      <div class="edit-input edit-newcover" [style.background-image]="'url('+readImgUrl+duplicate.cover+')'">
        <div class="cover-new" *ngIf="!duplicate.cover&&!IsUploadImage">
          <img src="/assets/img/home/icon-upload.png">
          <span>上传图片</span>
        </div>
        <div class="cover-edit"  *ngIf="duplicate.cover">
          <div class="upcover">
            <img src="/assets/img/home/icon-cover-edit.png" nz-tooltip nzTitle="上传封面">
          </div>
        </div>
        <nz-spin nzTip='图片上传中...' *ngIf="IsUploadImage"></nz-spin>
        <form class="UploadForm" enctype="multipart/form-data">
          <input type="file" name="uploadimg" (change)="UploadCover($event)">
        </form>
      </div>
    </div>
    <div class="em-submit">
      <button class="ems-button" nz-button nzType="primary" [nzSize]="'large'" (click)="confirm()" >确定</button>
    </div>
  </div>
</div>
